//---------------------------------------------------------------------------

#include <vcl.h>
#pragma hdrstop

#include "FormDlgEdit.h"
//---------------------------------------------------------------------------
#pragma package(smart_init)
#pragma resource "*.dfm"
TFDlgEdit *FDlgEdit;
//---------------------------------------------------------------------------
__fastcall TFDlgEdit::TFDlgEdit(TComponent* Owner)
        : TForm(Owner)
{
}
//---------------------------------------------------------------------------
void __fastcall TFDlgEdit::Edit1KeyPress(TObject *Sender, char &Key)
{
 if(Key == 13)
 {
  Key = 0;
  ModalResult = mrOk;
 }

}
//---------------------------------------------------------------------------
void __fastcall TFDlgEdit::ApplicationEvents1Message(tagMSG &Msg,
      bool &Handled)
{
 if( (Msg.message == WM_CHAR)||(Msg.message == WM_KEYDOWN)||(Msg.message == WM_KEYUP))
 {
  if(Msg.wParam == 27)
  {
   Handled = true;
   ModalResult = mrCancel;
   //return;
  }
 }

}
//---------------------------------------------------------------------------
